#ifndef BULLET_H
#define BULLET_H

#include "texture.h"
#include "hitbox.h"

class cBullet
{
    public:
        cBullet(int x, int y, int speed, int direction);
        ~cBullet();

        void update(int frameTime);

        bool disabled();

        int x();
        int y();
        cTexture* texture();
        Hitbox* hitbox();
    protected:
    private:
        float m_x, m_y;
        int m_speed, m_direction;
        bool m_disabled;

        cTexture m_texture;
        Hitbox* m_hitbox;

        void moveBullet(int frameTime);
        void disable();
};

#endif // BULLET_H
